#总结方法:谁调用def方法,谁就是self

class Student:
    def study(self):
        print(f'self:{id(self)}')
        # print('我正在学习')



zhangsan =Student()  #验证方法就是分别打印两个内存地址在进行比较
print(f'zhangsan:{id(zhangsan)}')
zhangsan.study()

lisi =Student()
print(f'lisi:{id(lisi)}')
lisi.study()



